class OR_ui_Targets {
	idd = 24388;
	movingEnable = 0;
	enableSimulation = 1;
	onLoad = "[] call OR_fnc_dlgInit";

	class controls {
		class Background : CUI_Frame {
			y = CUI_Row_Y(0);
			h = CUI_Row_DY(0,8);
			w = CUI_Box_W * 2;
		};
		class OrientationInterfaceCaption : CUI_Caption {
			text = $STR_OR_DLG_TITLE;
			y = CUI_Row_Y(0);
			w = CUI_Box_W;
		};
		class PlayerCaption : CUI_Caption {
			text = $STR_OR_DLG_PLAYER_CAPTION;
			y = CUI_Row_Y(1);
			x = CUI_Box_X(1);
			w = CUI_Box_W;
		};
		class PlayerSelection : CUI_Combo {
			idc = 1;
			y = CUI_Row_Y(1);
			x = CUI_Box_X(1);
			w = CUI_Box_W;
			wholeHeight = 9 * CUI_Row_H;
		};
		class FlagsCountCaption : CUI_Caption {
			text = $STR_OR_DLG_FLAGS_COUNT;
			y = CUI_Row_Y(2);
			x = CUI_Box_X(1);
			w = CUI_Box_W;
		};
		class FlagsCountSelection : CUI_Combo {
			idc = 2;
			y = CUI_Row_Y(2);
			x = CUI_Box_X(1);
			w = CUI_Box_W;
			wholeHeight = 9 * CUI_Row_H;
		};
		class MaxDistanceCaption : CUI_Caption {
			text = $STR_OR_DLG_MAX_DIST;
			y = CUI_Row_Y(3);
			x = CUI_Box_X(1);
			w = CUI_Box_W;
		};
		class MaxDistanceSelection : CUI_Combo {
			idc = 3;
			y = CUI_Row_Y(3);
			x = CUI_Box_X(1);
			w = CUI_Box_W;
			wholeHeight = 9 * CUI_Row_H;
		};

		class StartRace : CUI_Button {
			idc = 4;
			text = $STR_OR_DLG_START;
			w = CUI_Box_W * 2;
			y = CUI_Row_Y(5);
			action = "[lbCurSel 1, lbCurSel 2, lbCurSel 3] call OR_fnc_dlgStart";
			default = true;
		};

		class Clear : CUI_Button {
			idc = 5;
			text = $STR_OR_DLG_CLEAR;
			w = CUI_Box_W * 2;
			y = CUI_Row_Y(6);
			action = "[lbCurSel 1, lbCurSel 2, lbCurSel 3] call OR_fnc_dlgClear";
			default = true;
		};

		class Close : CUI_Button {
			text = $STR_OR_DLG_CLOSE;
			w = CUI_Box_W * 2;
			y = CUI_Row_Y(8);
			action = "closeDialog 0;";
			default = true;
		};
	};
};